<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="js/jquery-3.3.1.js"></script>
    <script type="text/javascript" src="js/md5.js"></script>
</head>
<body>
mad5  数字签名
<button id="user-name-label">点击一下</button>

</body>
<script>
    $("#user-name-label").click(function () {
        var md5s=hex_md5("admin");
        console.log(md5s);
        return;
        $.ajax({
            type:post,
            contentType: "application/json;charset=UTF-8",
            url : "http://localhost/right/",
            data : {
                userName:"admin",
                userPassword:$("[name=userPassword]").val()
            },
            //请求成功
            success : function(result) {
                console.log(result);
                if("error"==result){
                    $("#msg").css("display",'block')
                }else {
                    window.location.href="/html/main.html?userId="+result;
                }
            },
            //请求失败，包含具体的错误信息
            error : function(e){
                console.log(e.status);
                console.log(e.responseText);
            }

        })
    })
</script>
</html>